package com.partner.match.model.dto.team;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: jzz
 * @CreateTime: 2025-01-31
 * @Description: 队伍修改请求体
 */
@Data
public class UpdateTeamReq implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long teamId;
    /**
     * 队伍名称
     */
    @Size(min = 3, max = 15,message = "名称长度必须在3-15之间")
    private String teamName;
    /**
     * 队伍描述
     */
    @Size(max = 500,message = "队伍描述不超过500字")
    private String teamDescription;
    /**
     * 最大人数
     */
    @Max(value = 30,message = "最大人数为30")
    @Min(value = 1,message = "最小人数不能小于1")
    private Integer maxNum;
    /**
     * 队伍状态
     */
    private Integer status;
    /**
     * 密码
     */
    private String password;
    /**
     * 过期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expireTime;
}
